public class UnusualAdd {
    public int addAB(int A, int B) {
        int c=A^B;
        int d=A&B;

        int sum=c+2*d;
        return sum;

    }
}